@(subscriptions: List[models.domain.ContractItem])

@main("Προσθήκη Συνδρομής") {  
<legend>Διαθέσιμες Συνδρομές</legend>

<fieldset>
	<table class="table table-striped">
    <thead>
      <tr>
        <th>Type</th>
        <th>Unit</th>
        <th>Amount</th>
        <th>Action</th>
      </tr>
    </thead>
    <tbody>
    @for(subscription <- subscriptions) {
      <tr>
      	<td>@subscription.getItemType()</td>
        <td>@subscription.getQuantity()</td>
        <td>@subscription.getAmount()</td>
		<td class="crud-actions">
			<a href="@routes.Subscriptions.save(subscription.getId())" class="btn btn-info">add</a>
		</td>
      </tr>
      }

    </tbody>
	</table>
</fieldset>
}